package edu.kjxy.day02.t20;

import java.util.Random;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/1 15:58
 */
public class MyThread1 extends Thread{
    @Override
    public void run() {
        long beginTime = System.currentTimeMillis();
        for (int i = 0; i < 1000; i++) {
            Random random = new Random();
            random.nextInt();
        }
        long endTime = System.currentTimeMillis();
        System.out.println("================== thread 1 use time=" + (endTime - beginTime));
    }
}
